﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity.Models
{
    [Table("OperatorInfo")]
    public class OperatorInfo
    {
        [Key]
        public int OperatorId { get; set; }//Int AUTO_INCREMENT PRIMARY KEY
        public string? CompanyNo { get; set; }//Varchar(50) FK:公司代码
        public string? OperatorNo { get; set; }//Varchar(50) 员工编号(全局唯一)
        public string? LoginName { get; set; }//Varchar(50) 登录名(全局唯一)
        public string? OperatorName { get; set; }//Varchar(50) 员工名称
        public string? Password { get; set; }//Varchar(50) 登录密码
        public string? MobileNo { get; set; }//Varchar(50) 操作员手机
        public string? Email { get; set; }//Varchar(50) 操作员邮件
        public int IsTwoFactorAuth { get; set; }//Int 启用双因子认证（0-不启用，1-启用）
        public string? OperatorDefNo1 { get; set; }//Varchar(50) 用户自定义编号1
        public string? OperatorDefNo2 { get; set; }//Varchar(50) 用户自定义编号2
        public string? Remark { get; set; }//Varchar(200)    备注
        public int RoleId { get; set; }//Int FK:角色编号
        public string? ExtData { get; set; }//json 扩展数据


        public DateTime? BuildTime { get; set; }//Datetime    建档时间
        public DateTime? EditTime { get; set; }//Datetime 最后编辑时间
        public string? Operator { get; set; }//Varchar(50) 操作员名称

        public int? LimitLogin { get; set; }
    }
}
